up previous next
insert [OBSOLESCENT]    --    [OBSOLESCENT] insert an object in a list


Syntax
[OBSOLESCENT] insert(ref L: LIST, N: INT, E: OBJECT)

Description
In most cases you should use append rather than this function!

This function inserts E into L as the N-th component. Kept just for backward compatibility, it is strongly discouraged for its intrinsic inefficiency.

Example
/**/  L := ["a","b","d","e"];
/**/  insert(ref L,3,"c");
/**/  L;
["a", "b", "c", "d", "e"]

See Also